package com.hzhh123.crypto.annotation;

import com.hzhh123.crypto.advice.DecryptRequestBodyAdvice;
import com.hzhh123.crypto.advice.EncryptResponseAdvice;
import com.hzhh123.crypto.exception.CryptoGlobalExceptionAdvice;
import com.hzhh123.crypto.processor.CryptoBeanFactoryPostProcessor;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @author hzhh123
 * @version 1.0
 * @date 2022/4/12 18:01
 * @des
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Import(value = {CryptoBeanFactoryPostProcessor.class, DecryptRequestBodyAdvice.class, EncryptResponseAdvice.class, CryptoGlobalExceptionAdvice.class})
public @interface EnableEncryptDecrypt {
}
